<div class="kehoaches form">
<?php echo $this->Form->create('Kehoach');?>
	<fieldset>
		<legend><?php __('Chọn thời gian'); ?></legend>
	<?php
		//echo $this->Form->input('thoigian_id');
        echo 'Thời gian lập: <select name="data[Kehoach][thoigian_id]" id="thang">';
        for($j=0;$j<count($thang);$j++){
            echo ' <option value="'.$thang[$j]['thoigians']['id'].'">'.$thang[$j]['thoigians']['ngaybd'].' đến '.$thang[$j]['thoigians']['ngaykt'].'</option>';
        }
        echo '</select>';
		echo $this->Form->hidden('donvi_id',array('value'=>$dv_id));
        echo $this->Form->input('ngaybd',array('type'=>'text','label'=>false,'class'=>'datepick'));
        echo $this->Form->input('ngaykt',array('type'=>'text','label'=>false,'class'=>'datepick'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Next', true));?>
</div>

